import { createSSRApp, type ComponentPublicInstance } from "vue";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from "./App.vue";
export function createApp() {
  const app = createSSRApp(App);
	
	app.use(ElementPlus)
  //ComponentPublicInstance
  /**
   * 处理组件渲染方法执行期间以及侦听器抛出的未捕获错误
   */
  app.config.errorHandler =(err: unknown, instance: ComponentPublicInstance | null, info: string)=>{
	  
  }
  return {
    app,
  };
}

